package com.ls.pattern.visitor;

import java.util.Random;

/**
 * @author 挥之以墨
 */
public class Manager extends Employee {

    private int productNums;

    public Manager(String name) {
        super(name);
        this.productNums = new Random().nextInt(10);
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

    public int getProductNums() {
        return this.productNums;
    }
}
